package com.example.test

import android.graphics.BitmapFactory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_show.*

class ShowActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_show)

        intent.getStringExtra(IntentParamNames.FILE_PATH.name)?.let {
            preview.enable()
            preview.maxScale = 20F
            preview.setImageBitmap(BitmapFactory.decodeFile(it))
        }
    }
}